﻿using System.Collections;
using Eneta.Portal.Forum.Core.Domain.Entities;

namespace Eneta.Portal.Forum.Core.Domain.Collections
{
    public class ForumUserCollection : CollectionBase
    {
        // Methods
        public int Add(ForumUser user)
        {
            return List.Add(user);
        }

        public bool Contains(ForumUser user)
        {
            return List.Contains(user);
        }

        public int IndexOf(ForumUser user)
        {
            return List.IndexOf(user);
        }

        // Properties
        public ForumUser this[int index]
        {
            get
            {
                return (List[index] as ForumUser);
            }
            set
            {
                List[index] = value;
            }
        }
    } 
}
